<?php

namespace app\admin\model\shopro\tokens;

use think\Model;


class Pledgelog extends Model
{

    

    

    // 表名
    protected $name = 'shopro_tokens_pledgelog';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime =false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];


    public function user()
    {
        return $this->belongsTo('app\admin\model\User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }


    public function pledge()
    {
        return $this->hasOne(Pledge::class, 'id', 'pledge_id');
    }



    public function getStatusList()
    {
        return ['0' => __('Status 0'), '1' => __('Status 1')];
    }
    

    







}
